from django.shortcuts import render_to_response
from django.http import HttpResponse

import datetime

def cur_time(request):
	now = datetime.datetime.now()
	return render_to_response('cur_time.html',{'cur_time':now})

def hello(request):
	headers = request.META.items();
	html = []
	for k,v in headers:
		html.append('<tr><td>%s</td><td>%s</td></tr>' % (k,v))
	return HttpResponse('<table>%s</table>'% '\n'.join(html))
	
def headers(request):
	headers = request.META.items();
	return render_to_response('headers.html',{'headers':headers})